home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17392 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!marnold
  3. From: marnold@netcom.com (Matt Arnold)
  4. Subject: Re: memcopy...
  5. Message-ID: <marnoldDpw3qC.KH3@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4ksiul$n1o@news.duke.edu>
  8. Date: Mon, 15 Apr 1996 06:08:36 GMT
  9. Sender: marnold@netcom15.netcom.com
  10.  
  11. Joshua Lindquist <lindquij@acpub.duke.edu> writes:
  12.  
  13.  
  14. >Hi...I'm wondering if anyone knows the syntax for the memcopy function 
  15. >(well, I think it's memcopy...it might be something similar to 
  16. >memcopy...it's the function that copies some specified area of memory 
  17. >bitwise into some other area of memory).  This would be very helpful; 
  18. >thanks much.
  19.  
  20. Don't you have any documentation?  You could at least look in your
  21. "mem.h" header file (I assme you have it, otherwise you wouldn't be
  22. asking how to use it).
  23.  
  24. The function is memcpy(), prototyped in my "mem.h" as...
  25.  
  26.    void *memcpy(void *dest, const void *src, size_t n);
  27.  
  28. Where dest points to the place you want the memory pointed to by src 
  29. to go.  n is the number of bytes to copy from src to dest.
  30.  
  31. This is really basic.  What programming resources do you have?  May I 
  32. suggest getting better resources?  For example, I can go to my 
  33. compiler's help and type "memcpy" and see documentation for it.  Can't 
  34. you do something like this?
  35.  
  36. Regards,
  37. -------------------------------------------------------------------------
  38. Matt Arnold                       |        | ||| | |||| |  | | || ||
  39. marnold@netcom.com                |        | ||| | |||| |  | | || ||
  40. Boston, MA                        |      0 | ||| | |||| |  | | || ||
  41. 617.389.7384 (h) 617.576.2760 (w) |        | ||| | |||| |  | | || ||
  42. C++, MIDI, Win32/95 developer     |        | ||| 4 3 1   0 8 3 || ||
  43. -------------------------------------------------------------------------
  44.